<script type="text/javascript">
    $(function(){
        $('.dropdown-toggle').dropdown();
    });
</script>
<?php
/* @var $this BackendController */
/* @var $model Category */

$this->breadcrumbs=array(
    Yii::t('CategoryModule.base','Menus')=>array('index'),
    Yii::t('CategoryModule.base',$model->name),
);

?>
<?php if(Yii::app()->user->hasFlash('success')):?>
    <div class="alert alert-success">
        <?php echo Yii::app()->user->getFlash('success');?>
    </div>
<?php endif;?>
<div class="panel panel-primary">
    <div class="panel-heading">
        <i class="fa fa-cogs"></i><span class="h4"><?php echo Yii::t('CategoryModule.base','View category')?></span>
    </div>
    <div class="panel-body">
        <?php $this->widget('zii.widgets.CDetailView', array(
            'data'=>$model,
            'attributes'=>array(
                'id',
                'name',
                array(
                    'label'=>Yii::t('CategoryModule.base','Create time'),
                    'type'=>'raw',
                    'value'=>$model->getCreateDateTimeFormat(),
                ),
                array(
                    'label'=>Yii::t('CategoryModule.base','Update time'),
                    'type'=>'raw',
                    'value'=>$model->getUpdateDateTimeFormat(),
                ),

                array(
                    'label'=>Yii::t('CategoryModule.base','Status'),
                    'type'=>'raw',
                    'value'=>$model->getStatusIcon(),
                ),
                array(
                    'label'=>Yii::t('CategoryModule.base','Access'),
                    'type'=>'raw',
                    'value'=>CHtml::encode($model->access),
                )
            ),
        )); ?>
    </div>
</div>